package com.service.atmjk;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.bpms.atmp.client.content.main.atmjk.ATMRegister;
import com.bpms.common.CommonUtil;
import com.bpms.common.JdbcWorker;
import com.bpms.common.VO;
import com.bpms.esb.IService;

public class Deleteatmdevice implements IService {

	public VO exec(VO arg0) {
		JdbcWorker j = null;
		VO vo = new VO();
		try {
			
			j = new JdbcWorker();
			vo.voType = "atmdevice";	
			String colums = arg0.getAttr("NO");
			String sqlString ="delete from atmdevice where DEVICENO = '"+colums+"'";
			j.execute(sqlString);				
			vo.setAttr("ret", "0000");
			vo.setAttr("msg", "删除成功");
		} catch (Exception e) {
			CommonUtil.debug("Getcontract exception", e);
			vo.setAttr("ret", "9999");
			vo.setAttr("msg", "删除失败");
		}
		return vo;
	}

}
